import request from '@/router/axios'

export function fetchWxInviteFriendsList(query) {
  return request({
    url: '/mp/wxinvitefriends/page',
    method: 'get',
    params: query
  })
}

export function addWxInviteFriendsObj(obj) {
  return request({
    url: '/mp/wxinvitefriends',
    method: 'post',
    data: obj
  })
}

export function getWxInviteFriendsObj(id) {
  return request({
    url: '/mp/wxinvitefriends/' + id,
    method: 'get'
  })
}

export function delWxInviteFriendsObj(id) {
  return request({
    url: '/mp/wxinvitefriends/' + id,
    method: 'delete'
  })
}

export function putWxInviteFriendsObj(obj) {
  return request({
    url: '/mp/wxinvitefriends',
    method: 'put',
    data: obj
  })
}
